package pojo;

import java.sql.Timestamp;
import java.util.Objects;

public class TbFavourable {
    private Integer favId;
    private Double favMoney;
    private Integer favType;
    private Timestamp favDate;
    private Integer favStatus;
    private Integer userId;

    public Integer getFavId() {
        return favId;
    }

    public void setFavId(Integer favId) {
        this.favId = favId;
    }

    public Double getFavMoney() {
        return favMoney;
    }

    public void setFavMoney(Double favMoney) {
        this.favMoney = favMoney;
    }

    public Integer getFavType() {
        return favType;
    }

    public void setFavType(Integer favType) {
        this.favType = favType;
    }

    public Timestamp getFavDate() {
        return favDate;
    }

    public void setFavDate(Timestamp favDate) {
        this.favDate = favDate;
    }

    public Integer getFavStatus() {
        return favStatus;
    }

    public void setFavStatus(Integer favStatus) {
        this.favStatus = favStatus;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbFavourable that = (TbFavourable) o;
        return Objects.equals(favId, that.favId) &&
                Objects.equals(favMoney, that.favMoney) &&
                Objects.equals(favType, that.favType) &&
                Objects.equals(favDate, that.favDate) &&
                Objects.equals(favStatus, that.favStatus) &&
                Objects.equals(userId, that.userId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(favId, favMoney, favType, favDate, favStatus, userId);
    }
}
